package com.fable.web.controller;

import com.fable.web.common.admin.UserTools;
import com.fable.web.common.annotation.Track;
import com.fable.web.page.P;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

@Controller
@RequestMapping("/index")
public class TestController {

    @RequestMapping(value = "/test.json")
    @ResponseBody
    public Map detail() {
        Map map=new HashMap<>();
        map.put("name","weishuai'");
        map.put("name2","weishuai2'");
        map.put("name3","weishuai3'");
        return map;
    }

    @RequestMapping("/greeTest.htm")
    public String greeTest() {
        return "greeTest";
    }
}
